package com.hr.system.mapper;

import com.hr.system.entity.SysRoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hr
 * @since 2024-05-06
 */

@Mapper
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
    @Delete("delete from sys_role_menu where role_id=#{rid}")
    int delByRid(Integer rid);

    int insertBatch(@Param("rid") Integer rid, @Param("list") List<Integer> mids);
}
